package jdbc;

import java.sql.Connection;
import java.sql.DriverManager;

public class ConnectionFactory {
	private Connection connection;

	public Connection getConnection() {
		try {
			Class.forName("com.mysql.jdbc.Driver");
			return DriverManager.getConnection(
					"jdbc:mysql://localhost/livraria", "root", "cS1992@");
		} catch (Exception e) {
			throw new RuntimeException(e);
		}
	}
}
